package com.wanmait.baohan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

public class WorkTemplate implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
	* 审核人
	*/
    private Integer reviewerId;
    @TableField(exist = false)
    private Staff reviewer;
    /**
	* 起草人
	*/
    private Integer drafterId;
    @TableField(exist = false)
    private Staff drafter;
    /**
	* 名称
	*/
    private String name;

    /**
	* 模板名称
	*/
    private String content;

    /**
	* 编号
	*/
    private String number;

    /**
	* 版本号
	*/
    private String version;

    /**
	* 创建时间
	*/
    private Date inputTime;

    /**
	* 修改时间
	*/
    private Date updateTime;

    /**
	* 模板类型
	*/
    private Integer templateType;
    @TableField(exist = false)
    private String templateTypeName;
    /**
	* 0禁用 1启用
	*/
    private Boolean enable;

    /**
	* 备注
	*/
    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getReviewerId() {
        return reviewerId;
    }

    public void setReviewerId(Integer reviewerId) {
        this.reviewerId = reviewerId;
    }

    public Integer getDrafterId() {
        return drafterId;
    }

    public void setDrafterId(Integer drafterId) {
        this.drafterId = drafterId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getTemplateType() {
        return templateType;
    }

    public void setTemplateType(Integer templateType) {
        this.templateType = templateType;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Staff getReviewer() {
        return reviewer;
    }

    public void setReviewer(Staff reviewer) {
        this.reviewer = reviewer;
    }

    public Staff getDrafter() {
        return drafter;
    }

    public void setDrafter(Staff drafter) {
        this.drafter = drafter;
    }

    public String getTemplateTypeName() {
        return templateTypeName;
    }

    public void setTemplateTypeName(String templateTypeName) {
        this.templateTypeName = templateTypeName;
    }

    @Override
    public String toString() {
        return "WorkTemplate{" +
                "id=" + id +
                ", reviewerId=" + reviewerId +
                ", reviewer=" + reviewer +
                ", drafterId=" + drafterId +
                ", drafter=" + drafter +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", number='" + number + '\'' +
                ", version='" + version + '\'' +
                ", inputTime=" + inputTime +
                ", updateTime=" + updateTime +
                ", templateType=" + templateType +
                ", templateTypeName='" + templateTypeName + '\'' +
                ", enable=" + enable +
                ", remark='" + remark + '\'' +
                '}';
    }
}